#include "Position.h"

#include <string>

using std::string;

Position::Position(int l, int c):caseL(l),caseC(c){}
int Position::getL() const{return caseL;}
int Position::getC() const{return caseC;}

int& Position::getL(){return caseL;}
int& Position::getC(){return caseC;}

bool Position::operator ==(const Position& p)const
{
	return caseL == p.caseL && caseC == p.caseC;
}

string Position::toString()const
{
	char res[3] = {'a' + caseC,'1' + caseL, '\0'};
	return res;
}
